Converting binary to decimal using only Boolean and logic comparisons

welcome to shbcf.ru